github.com/hyperion-hyn/go-ethereum@v2.4.0+incompatible/docs/Privacy/Tessera/Configuration/Using CLI to override config.md (about)

     1  CLI options can be used to add to, or override, configuration defined in a `configfile`.  
     2  
     3  Standard Tessera CLI options are prefixed with a single hyphen (e.g. `-configfile <PATH>`), whilst the config override options are prefixed with a double hyphen (e.g. `--alwaysSendTo <STRING[]...>`).  Use `tessera help` to see a complete list of CLI options.  
     4  
     5  If a config value is included in both the `configfile` and the CLI, then the CLI value will take precendence. The exceptions to this rule are the `--peer.url <STRING>` and `--alwaysSendTo <STRING[]...>` options.  Instead of overriding, these CLI options append to any peer or alwaysSendTo urls in the provided `configfile`.  For example, if the following was provided in a `configfile`:
     6  ```
     7  {
     8    ...
     9    "peer": [
    10      {
    11        "url": "http://localhost:9001"
    12      }
    13    ],
    14    alwaysSendTo:[
    15      "giizjhZQM6peq52O7icVFxdTmTYinQSUsvyhXzgZqkE="
    16    ],
    17    ...
    18  }
    19  ```
    20  and Tessera was run with the following overrides:
    21  ```
    22  tessera -configfile path/to/file --peer.url http://localhost:9002 --peer.url http://localhost:9003 --alwaysSendTo /+UuD63zItL1EbjxkKUljMgG8Z1w0AJ8pNOR4iq2yQc= --alwaysSendTo UfNSeSGySeKg11DVNEnqrUtxYRVor4+CvluI8tVv62Y=
    23  ```
    24  then Tessera will be started with the following equivalent configuration:
    25  ```
    26  {
    27    ...
    28    "peer": [
    29      {
    30        "url": "http://localhost:9001"
    31      },
    32      {
    33        "url": "http://localhost:9002"
    34      },
    35      {
    36        "url": "http://localhost:9003"
    37      }
    38    ],
    39    alwaysSendTo:[
    40      "giizjhZQM6peq52O7icVFxdTmTYinQSUsvyhXzgZqkE=",
    41      "/+UuD63zItL1EbjxkKUljMgG8Z1w0AJ8pNOR4iq2yQc="
    42      "UfNSeSGySeKg11DVNEnqrUtxYRVor4+CvluI8tVv62Y="
    43    ],
    44    ...
    45  }
    46  ```
    47  As demonstrated in this example, in certain cases multiple values can be provided by repeating the CLI option.  This is supported for the `peer.url`, `alwaysSendTo`, `server.sslConfig.serverTrustCertificates` and `server.sslConfig.clientTrustCertificates` options.